#!/usr/local/bin/python2.7
# encoding: utf-8
'''
NervuresDesignTool -- Outil de conception/simulation de parapentes Nervures

Classe xxx
Description :
@module : gui.graphicsbase.infosviewer
@author:      puiseux
@copyright:   2013 Nervures. All rights reserved.      
@license:    LGPL
@contact:    be@nervures.com, pierre@puiseux.name
@deffield    creation: 5 févr. 2013
'''
import sys, os
from PyQt4 import QtCore, QtGui
from PyQt4.uic import loadUiType
from utilitaires.path import Path
from config import SOURCES_DIR

UiguiInfosClass, UiguiInfosClassType = loadUiType(Path(SOURCES_DIR,"gui","ui","infosviewer.ui"))
class InfosWidget(UiguiInfosClassType, UiguiInfosClass):
    def __init__(self, parent=None):
        UiguiInfosClassType.__init__(self, parent)
        self.setupUi(self)
        infodoc = QtGui.QTextEdit(self)
        infodoc.setReadOnly(True)
        infodoc.setPlainText("un petit texte infos")
        self.tabWidget.addTab(infodoc, "Nouvel onglet info") 
        
if __name__ == '__main__':
    app = QtGui.QApplication(sys.argv)
    widgetinfos = InfosWidget(None)
    widgetinfos.show()
    sys.exit(app.exec_())